package online.longzipeng.cinemasys.vo.type;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;

/**
 * @author lzp
 * @date 2021/4/10 10:17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "分类修改对象",description = "请求参数类")
public class TypeUpdateVO {

    @ApiModelProperty(value = "id",example = "0",required = true)
    @Min(value = 0,message = "id必须为大于0的数字")
    private Long id;

    /**
     * 类别名称
     */
    @ApiModelProperty(value = "类别名称",example = "文学",required = false)
    private String name;

    /**
     * 父级类别id
     */
    @ApiModelProperty(value = "父级类别id",example = "1",required = false)
    private Long parentId;
}
